/**
 * 
 */
package info.niwota.ezb;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

/**
 * @author qiangli
 * 
 */
public class BootReceiver extends BroadcastReceiver {

	private static final String TAG = "BootReceiver";

	@Override
	public void onReceive(Context ctx, Intent intent) {
		final String action = intent.getAction();
		if (Debug.DEBUG) {
			Log.d(TAG, "action: " + action + " ctx: " + ctx + " intent: " + intent);
		}

		if (Intent.ACTION_BOOT_COMPLETED.equals(action)) {
			
			ImageHolderActivity.ensureRunning(ctx);
		}
	
	}
}
